(function(window){
	var Subject_tikuCtrl = {
		data:{},
		init: function(data){
			this.bindEven();
        },
		bindEven: function(){
            var bindings = [{
               // element:document,
                element:'.learnchapter h3',
                event:hiApp.device.click,
                handler:this.show_lesson
            },
			{
                element:'.sumbit_answer',
                event: hiApp.device.click,
                handler: this.post_answer
            },
			];
            bindEvents(bindings);
        },
		post_answer:function(){
			var data_id=$(this).attr("data-id");
			var answer_remark=$('[data-id="all_questions_'+data_id+'"]').find(".answer_remark")
			answer_remark.show();
			var anwser=$("#hideQuestionanswer_"+data_id).val();
			var post_anwser="";
			$('[data-id="all_questions_'+data_id+'"]').find("dd .checked").each(function(i,v){
				 post_anwser+=$(v).attr("key");
			});
			if(post_anwser==anwser){
				var remark='<span class="glyphicon glyphicon-ok-circle"></span>';
			}else{
				var remark='<span class="glyphicon glyphicon-remove-circle"></span>';
			}
			$('[data-id="all_questions_'+data_id+'"]').find("dd").unbind(hiApp.device.click);
			answer_remark.html(remark);
		    $("#questions_answer_"+data_id).show();
			$(this).hide();	
		},
		show_lesson:function(){
			 CM.init("BoxEdu","Subject_lessonCtrl").show_lesson($(this))
		}
		
    };
		
	window.BoxEdu_Subject_tikuCtrl = Subject_tikuCtrl;
						
})(window);